package com.itheima.article.feign;

import com.itheima.article.pojo.ApAuthor;
import com.itheima.common.pojo.Result;
import com.itheima.core.feign.CoreFeign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "leadnews-article",path = "/apAuthor")
public interface ApAuthorFeign extends CoreFeign<ApAuthor> {



    /**
     * 根据用户id查询自媒体
     */
    @GetMapping("/one/{apUserId}")
    Result<ApAuthor> getByUserId(@PathVariable Integer apUserId);



}